package com.linxianqin.springbootVue.domain.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 用户和角色关联表
 * </p>
 *
 * @author lxq
 * @since 2020-12-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SysUserRole对象", description="用户和角色关联表")
public class SysUserRole implements Serializable {

    private static final long serialVersionUID=1L;

      @ApiModelProperty(value = "用户ID")
      @TableId(value = "user_id", type = IdType.ASSIGN_ID)
      private Long userId;

      @ApiModelProperty(value = "角色ID")
      private Long roleId;
}
